package com.example.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("tb_log")
public class SysLog implements Serializable {
    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "操作序号")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 操作模块
     */
    @ApiModelProperty(value = "操作模块")
    private String title;

    /**
     * 业务类型（0其它 1新增 2修改 3删除）
     */
    @ApiModelProperty(value = "业务类型")
    private Integer businessType;

    /**
     * 请求方法
     */
    @ApiModelProperty(name = "请求方法")
    private String method;

    @ApiModelProperty(name = "请求方式")
    private String requestMethod;


    @ApiModelProperty(name = "操作人员")
    private String operName;
    /**
     * 请求url
     */
    @ApiModelProperty(name = "请求地址")
    private String operUrl;

    /**
     * 操作地址
     */
    @ApiModelProperty(name = "操作地址")
    private String operIp;

    /**
     * 操作地点
     */
    @ApiModelProperty(name = "操作地点")
    private String operLocation;
    /**
     * 操作时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "操作时间")
    private Date operTime;

}
